﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace PatNetShop.WebControls
{
    [DefaultProperty("Text")]
    [ToolboxData("<{0}:StyleSheet runat=server></{0}:StyleSheet>")]
    public class StyleSheet : LiteralControl
    {
        private readonly static string StyleSheetPath = "~/Themes/{0}/CssClass/StyleSheet.css";
        private string themes = "Default";

        public StyleSheet()
        {
            base.Text = "<link type=\"text/css\" rel=\"Stylesheet\" href=\"" + String.Format(StyleSheetPath, themes) + "\" />";
        }

        public String Themes
        {
            set { themes = value; }
        }
    }
}
